GtkProgressBarPrivate: Improve struct packing
authorMatthias Clasen <mclasen@redhat.com>
Tue, 12 Apr 2011 16:40:30 +0000 (12:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 12 Apr 2011 16:40:30 +0000 (12:40 -0400)
Also remove the unused blocks and in_block members.

gtk/gtkprogressbar.c

index e431811de26a500b927e2d1191b11849d9f0dd30..c4fb26627aaf6b0b5a0ca0106229c3404c000006 100644 (file)
 
 struct _GtkProgressBarPrivate
 {
-  GtkOrientation orientation;
-
   gchar         *text;
 
   gdouble        fraction;
   gdouble        pulse_fraction;
 
-  guint          blocks;
-  gint           in_block;
-
   gint           activity_pos;
   guint          activity_blocks;
   guint          activity_step;
 
+  GtkOrientation orientation;
+
   guint          activity_dir  : 1;
   guint          activity_mode : 1;
   guint          ellipsize     : 3;
@@ -299,8 +296,6 @@ gtk_progress_bar_init (GtkProgressBar *pbar)
                                             GtkProgressBarPrivate);
   priv = pbar->priv;
 
-  priv->blocks = 10;
-  priv->in_block = -1;
   priv->orientation = GTK_ORIENTATION_HORIZONTAL;
   priv->inverted = FALSE;
   priv->pulse_fraction = 0.1;